import request from '@/utils/request'

// 查询客户基本信息列表
export function listProjct(query) {
    return request({
        url: '/lims/project/qc/projectList',
        method: 'get',
        params: query
    })
}

// 首页进来获取withId
export function getId(taskId) {
    return request({
        url: '/flowable/task/processVariables/'+taskId,
        method: 'get',
    })
}

// 首页进来获取withId
export function getMmyList(query) {
    return request({
        url: '/lims/project/qc/samplelist',
        method: 'get',
        params: query
    })
}


// 查询客户基本信息列表
export function getSampleWithList(query) {
    return request({
        url: '/lims/project/qc/withList',
        method: 'get',
        params: query
    })
}

// 查询客户基本信息列表
export function getSampleList(query) {
    return request({
        url: '/lims/project/qc/sampleJcxmlist',
        method: 'get',
        params: query
    })
}

// 点击平行
export function addPxy(data) {
    return request({
        url: '/lims/project/qc/addPxy',
        method: 'post',
        data: data
    })
}

// 生成密码样编号
export function savePweCode(data) {
    return request({
        url: '/lims/project/qc/addPwdCode',
        method: 'post',
        data: data
    })
}

// 删除密码样编号
export function delPweCode(data) {
    return request({
        url: '/lims/project/qc/delete/deletePwdCode',
        method: 'delete',
        data: data
    })
}

// 添加密码样
export function addPwdCode(data) {
    return request({
        url: '/lims/project/qc/addPwdCode',
        method: 'post',
        data: data
    })
}

// 查询盲样弹出框质控样搜索结果列表
export function listQuality(query) {
    return request({
        url: '/lims/project/qc/qcList',
        method: 'get',
        params: query
    })
}

// 查询盲样弹出框检测项目列表
export function listQualityJcxm(bzwzId) {
    return request({
        url: '/lims/project/qc/qcJcxmList/' + bzwzId,
        method: 'get',
    })
}

// 查询盲样弹出框检测项目列表
export function listJclb(withId) {
    return request({
        url: '/lims/project/qc/jclbList/' + withId,
        method: 'get',
    })
}

// /store/jcxm/jcxmList
export function listMethod(query) {
    return request({
        url: '/lims/project/qc/methodList',
        method: 'get',
        params: query
    })
}

// 弹框确定
export function postMethod(data) {
    return request({
        url: '/lims/project/qc',
        method: 'post',
        data: data
    })
}
// 删除
export function delPxMy(sFIds) {
    return request({
        url: '/lims/project/qc/deleteQcSample/delete/' + sFIds,
        method: 'delete'
    })
}

// 提交按钮
export function submitQc(data) {
    return request({
        url: '/flowable/task/complete',
        method: 'post',
        data: data
    })
}